package gxnu.edu.cn.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import gxnu.edu.cn.entity.Ccards;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import gxnu.edu.cn.service.ICcardsService;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.List;

/**
 * <p>
 * 名片夹表 前端控制器
 * </p>
 *
 * @author cq
 * @since 2025-05-07
 */
@Slf4j
@RestController
@RequestMapping("/ccards")
public class CcardsController {
    
@Autowired
private ICcardsService ccardsService;

    /**
     * 查询卡片列表
     * @return 卡片列表
     */
    @GetMapping("/list")
    public List<Ccards> qaryCardsList() {
        return ccardsService.qaryCardsList();
    }
}
